package com.young.test.services;

import org.apache.log4j.Logger;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.young.test.daos.PersonDao;
import com.young.test.domain.Person;

@Service
public class PersonService {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(PersonService.class);

	@Inject
	PersonDao dao;
	
	public void service(){
		Person young = dao.getPersonByName("Young");
		Person stranger = dao.getPersonByName("Stranger");
		
		logger.info(young.getName());
		logger.info(stranger.getName());
	}
}
